﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Form
{
    public partial class MainPage : UserControl
    {
        Boolean MouseLeave = false;
        int[,] Cardial = new int[0,0];
        

        public MainPage()
        {
            InitializeComponent();
            NavigationGrid.Width = this.Width;
        }

        private void Path_MouseEnter(object sender, MouseEventArgs e)
        {
            MouseLeave = true;
        }

        private void Path_MouseLeave(object sender, MouseEventArgs e)
        {
            MouseLeave = false;
        }

        private void Path_MouseMove(object sender, MouseEventArgs e)
        {
            if (MouseLeave)
            {
                this.Height = 100;
                this.Width = 100;
            }
        }
    }
}